package com.ruoyi.analysis.service.impl;

import java.util.List;

import com.ruoyi.analysis.resp.WarrantyResultSummaryResp;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.analysis.mapper.WarrantyResultMapper;
import com.ruoyi.analysis.domain.WarrantyResult;
import com.ruoyi.analysis.service.IWarrantyResultService;

/**
 * 维修汇总列表Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-10-08
 */
@Service
public class WarrantyResultServiceImpl implements IWarrantyResultService 
{
    @Autowired
    private WarrantyResultMapper warrantyResultMapper;

    /**
     * 查询维修汇总列表
     * 
     * @param id 维修汇总列表主键
     * @return 维修汇总列表
     */
    @Override
    public WarrantyResult selectWarrantyResultById(Long id)
    {
        return warrantyResultMapper.selectWarrantyResultById(id);
    }

    /**
     * 查询维修汇总列表列表
     * 
     * @param warrantyResult 维修汇总列表
     * @return 维修汇总列表
     */
    @Override
    public List<WarrantyResult> selectWarrantyResultList(WarrantyResult warrantyResult)
    {
        return warrantyResultMapper.selectWarrantyResultList(warrantyResult);
    }

    /**
     * 新增维修汇总列表
     * 
     * @param warrantyResult 维修汇总列表
     * @return 结果
     */
    @Override
    public int insertWarrantyResult(WarrantyResult warrantyResult)
    {
        return warrantyResultMapper.insertWarrantyResult(warrantyResult);
    }

    /**
     * 修改维修汇总列表
     * 
     * @param warrantyResult 维修汇总列表
     * @return 结果
     */
    @Override
    public int updateWarrantyResult(WarrantyResult warrantyResult)
    {
        return warrantyResultMapper.updateWarrantyResult(warrantyResult);
    }

    /**
     * 批量删除维修汇总列表
     * 
     * @param ids 需要删除的维修汇总列表主键
     * @return 结果
     */
    @Override
    public int deleteWarrantyResultByIds(Long[] ids)
    {
        return warrantyResultMapper.deleteWarrantyResultByIds(ids);
    }

    /**
     * 删除维修汇总列表信息
     * 
     * @param id 维修汇总列表主键
     * @return 结果
     */
    @Override
    public int deleteWarrantyResultById(Long id)
    {
        return warrantyResultMapper.deleteWarrantyResultById(id);
    }

    @Override
    public List<WarrantyResultSummaryResp> summary(WarrantyResult warrantyResult) {
        return null;
    }


}
